package com.example.d10_homework.homework08;

public class Test {
    public static void main(String[] args) {
        // 1. 创建线程任务对象
        Runnable task = new MyRunnable();

        // 2. 创建线程对象
        Thread t1 = new Thread(task, "线程1");
        Thread t2 = new Thread(task, "线程2");

        // 3. 启动线程
        t1.start();
        t2.start();
    }
}
